package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author wanghang
 * @Date 2022/6/16 20:30
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserFansDto implements Serializable {

    /**
     * 当前用户ID
     */
    private String crrUserId;

    /**
     * 用户ID/组织ID
     */
    @NotBlank(message = "用户ID/组织ID不能为空")
    private String objId;

    /**
     * 类型：1-用户 2-组织
     */
    @Min(value = 1)
    @Max(value = 2)
    @NotNull(message = "objType 不能为空")
    private Integer objType;

}
